<!--
 * Date: 2018年01月25日 16:17:35
 * LastEditors: lvyou
 * LastEditTime: 2020年01月03日 13:57:23
 * FilePath: \youlinweb-master\src\components\replacedetail\hot-displacedetail-header .vue
 * copyright(c) 2019-2025 版权为浙江双城网络科技集团有限公司所有，违者必究。
 -->
<template>
<div style="position:relative">
  <span class="yl-2yiguo outofdate" v-if="statustype==2"><span class="path1"><span class="path2"><span class="path3"><span class="path4"><span class="path5"><span class="path6"></span></span></span></span></span></span></span>
  <span class="yl-2yishou sold" v-if="statustype==1"><span class="path1"><span class="path2"><span class="path3"><span class="path4"><span class="path5"><span class="path6"></span></span></span></span></span></span></span>
  <div class="hot-header" @click="repheader($event,topicindex,commentindex,tabId)" style="padding-bottom: 0.2rem;">
    <div class="pendant-container">
      <img class="avatar" v-lazy="avatar" />
      <img :src="pendantPicUrl"  class="pendant" v-if="pendantType!=0&&pendantPicUrl">
      <img src="https://youlingqinius.wonderlandnet.cn/youlin-shengdan@2x.png"  class="pendant" v-else-if="pendantType==1">
      <img src="https://youlingqinius.wonderlandnet.cn/youlin-yuandan@2x.png"  class="pendant" v-else-if="pendantType==2">
      <img src="https://youlingqinius.wonderlandnet.cn/youlin-chunjie@2x.png"  class="pendant" v-else-if="pendantType==3">
      <img src="https://youlingqinius.wonderlandnet.cn/youlin-yuanxiao@2x.png"  class="pendant" v-else-if="pendantType==4">
      <img src="~img/vip.png"  class="vipimg v-h" v-else-if="userType==2">
        <img src="~img/daren.png"  class="vipimg v-h" v-else-if="isTalent==1">
    </div>
    <div class="header-right">
      <div class="nameleft">
        <span class="name">{{name}}</span>
        <div style="display:flex;padding-top:0.05rem">
          <span class="hot-discuss">{{time}}</span>
          <span class="hot-discuss" style="padding-left:0.2rem">发布于{{repplace}}</span>
        </div>
      </div>
    </div>

  </div>
  <div class="body-sep"></div>
</div>
</template>
<script>
  export default{
    data (){
      return {

      }
    },
    props:['statustype','name','time','money','topicindex','commentindex','avatar','tabId',"repplace","userType",'isTalent','pendantType','pendantPicUrl'],
    methods:{
      repheader(event,topicindex,commentindex,tabId){
        this.$emit("torepcommentdetail",{event:event,topicindex:topicindex,commentindex:commentindex,tabId:tabId})
      }
    }
  }
</script>
<style lang="less" scoped>
.body-sep {
  margin: 0 0.3rem;
  height: 1px;
  background-color: #E6E6E6;
}
  .hot-header{
    width: 6.0rem;
    padding-top: 0.2rem;
    margin-left: 0.3rem;
    display: flex;
    align-items: center;
    background-color: white;
    .pendant{
      width: 100%;
      height: 100%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    .pendant-container{
      width: 0.9rem;
      position: relative;
      height: 0.9rem;
    }
  }
  .avatar{
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 0.33rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .header-right{
    margin-left: 0.2rem;
    width: 6.2rem;
    display: flex;
    justify-content: space-between;
  }
  .nameleft{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  .name{
    font-size: 0.3rem;
    color: #494949;
    font-weight: bold;
    font-family: PingFangSC-Medium, sans-serif;
  }
  .displace-money{
    display: flex;
    justify-content: center;
  }
  .discusstime{
    position: relative;
    display: flex;

  }
  .hot-discuss{
     font-size: 0.22rem;
    color: #999999;
  }
  .price{
    padding-right: 0.13rem;
    padding-top: 0.25rem;
    font-size: 0.24rem;
    color: #DC4B4E;
    font-family: Arial;
  }
  .outofdateprice{
    padding-right: 0.13rem;
    padding-top: 0.25rem;
    font-size: 0.24rem;
    color: #999999;
  }
  .outofdate{
    max-height: 0.8rem;
   background: #ffffff;
   position: absolute;
   right: 0.45rem;
  }
  .sold{
   max-height: 0.8rem;
   background: #ffffff;
   position: absolute;
   right: 0.45rem;
  }
  .sold span{
    color: white;
  }
   .v-h{
    // left: 0.75rem;
    // top: 0.72rem;
  }
</style>
